#include<iostream>
#include<cstdlib>
class Caculate
{
    public:
    virtual int getresult(int a,int b)
    {
        return 0;
    }
};
class Add : public Caculate
{
    public:
    int getresult(int a,int b)
    {
        return a + b;
    }
};
class Minus : public Caculate
{
    public:
    int getresult(int a,int b)
    {
        return a - b;
    }
};
class Mul : public Caculate
{
    public:
    int getresult(int a,int b)
    {
        return a * b;
    }
};
class Dev : public Caculate
{
    public:
    int getresult(int a,int b)
    {
        return a / b;
    }
};
Caculate *cal[10];
Caculate* ChooseCal(char c)
{
    Caculate *cacul;
    switch(c)
    {
        case '+':
            cacul = cal[0];
            break;
        case '-':
            cacul = cal[1];
            break;
        case '*':
            cacul = cal[2];
            break;
        case '/':            
            cacul = cal[3];
            break;
        default:
            break;
    }
    return cacul;
}

int main()
{

    cal[0] = new Add;
    cal[1] = new Minus;
    cal[2] = new Mul;
    cal[3] = new Dev;
    int a, b;
    char c;//'+' '-' '*' '/'
    std::cin >> a >> b >> c;
    std::cout << ChooseCal(c)->getresult(a, b)<<std::endl;
    return 0;
}